package com.yilin.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.platform.base_core.application.PageData;
import com.yilin.platform.entity.wlhy.TmsRootData;
import com.yilin.platform.entity.user.deserialize.Account;

import java.util.List;

public interface ITmsDataService extends IService<TmsRootData> {

    List<TmsRootData> syncUploadTmsDataList(Account loginUser);

    //获取本地待上传记录
    PageData<TmsRootData> getWaitUploadTmsDataPage(String ipcType, TmsRootData.Status status,String identification, Integer page, Integer limit);

    //获取本地待上传记录
    List<TmsRootData> getWaitUploadTmsDataPage(String ipcType, TmsRootData.Status status, String identification);

    //自动从服务器获取记录 并提交
    //远程自动化
    void autoSyncWaitUploadTmsDataList(Account loginUser);

    //本地.手动提交记录
    void postTmsDataByIds(Account loginUser, String[] ids);

    //本地.一键上送所有未提交数据
    void postAllTmsDataList(Account loginUser);

    //本地.上送所有失败数据
    void postFailTmsDataList(Account loginUser);
}
